package com.zxc.enums;

/**
 * 定义水果枚举和基础类
 */
public enum Fruit {
    APPLE(8),
    STRAWBERRY(13),
    MANGO(20);

    private final int price;

    Fruit(int price) {
        this.price = price;
    }

    public int getPrice() {
        return price;
    }
}